<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Projects.aspx.cs" Inherits="Admin_Projects" Title="Untitled Page" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td style="width: 100px" align="center">
                <asp:Button ID="butCats" runat="server" OnClick="butCats_Click" Text="Admin Categories" /></td>
            <td style="width: 100px" align="center">
                <asp:Button ID="butStatuses" runat="server" OnClick="butStatuses_Click" Text="Admin Statuses" /></td>
        </tr>
        <tr>
            <td style="width: 100px" align="center">
                <asp:Button ID="butNewProject" runat="server" OnClick="butNewProject_Click" Text="New Project" /></td>
            <td align="center" colspan="1" style="width: 100px">
                <asp:Button ID="butBlurb" runat="server" OnClick="butBlurb_Click" Text="Edit Project Blurb" /></td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="2" style="width: 100px" align="center">
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="PRO_ID" DataSourceID="ObjectDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" Width="762px">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="PRO_ID" HeaderText="PRO_ID" InsertVisible="False" ReadOnly="True"
                            SortExpression="PRO_ID" Visible="False" />
                        <asp:BoundField DataField="PRO_TITLE" HeaderText="TITLE             " SortExpression="PRO_TITLE" />
                        <asp:BoundField DataField="PRO_LONG_DESC" HeaderText="Description" SortExpression="PRO_LONG_DESC" Visible="False" />
                        <asp:BoundField DataField="PRO_SHORT_DESC" HeaderText="Blurb" SortExpression="PRO_SHORT_DESC" Visible="False" />
                        <asp:BoundField DataField="PRO_URL" HeaderText="Full URL" SortExpression="PRO_URL" Visible="False" />
                        <asp:BoundField DataField="PRO_DISPLAY_URL" HeaderText="Display URL" SortExpression="PRO_DISPLAY_URL" />
                        <asp:BoundField DataField="PST_TITLE" HeaderText="Status" SortExpression="PST_TITLE" />
                        <asp:BoundField DataField="PCA_TITLE" HeaderText="Category" SortExpression="PCA_TITLE" />
                        <asp:BoundField DataField="AlbumTitle" HeaderText="Album" SortExpression="Caption" />
                        <asp:BoundField DataField="PhotoTitle" HeaderText="Thumb" SortExpression="Expr1" Visible="False" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
                &nbsp;
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="DeleteProject"
                    SelectMethod="GetProjects" TypeName="ProjectManager">
                    <DeleteParameters>
                        <asp:Parameter Name="PRO_ID" Type="Int32" />
                    </DeleteParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

